/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db.dbTables;

import core.objects.BaseObject;
import java.sql.ResultSet;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;

import db.queries.core.QueriesEnvironment;

/**
 *
 * @author abadi
 */
public class BookCrossCategoryTable extends AbstractCrossDBTable{
	
    final public DbColumn id = new DbColumn("book_cross_category_id",  Types.INTEGER, 11, false, this);
    final public DbColumn bookId = new DbColumn("book_id",  Types.INTEGER, 11, false, this);
    final public DbColumn categroyId = new DbColumn("category_id",  Types.INTEGER, 11, false, this);
    
    public BookCrossCategoryTable() {
        super("book_cross_category",
        		QueriesEnvironment.getBookTable(),
        		QueriesEnvironment.getCategoryTable());
        setIDColumn(id);
        setTable1IDColumn(bookId);
        setTable2IDColumn(categroyId);
    }
    
    @Override
    public List<DbColumn> getDbColumns(){
        List<DbColumn> list = new ArrayList<DbColumn>();
        list.add(id);
        list.add(bookId);
        list.add(categroyId);
        return list;
    }

    @Override
    public BaseObject convertSqlTableToBaseObject(ResultSet resultSet) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
